Skip to content

Update a VPN import route

Request

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

networkNamestringrequired

Network name

uidstringrequired

Route ID

Bodyapplication/json
descriptionstring
metricnumber
networkCidrstring
nodestring
pathstring
monitorsArray of objects(VirtualNetworkRouteMonitor)
curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/vpn/{networkName}/dynamic/import-route/{uid}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "description": "string",
    "metric": 0,
    "networkCidr": "string",
    "node": "string",
    "path": "string",
    "monitors": [
      {
        "enabled": true,
        "name": "string",
        "protocol": "tcp",
        "dest": "string",
        "port": 0,
        "interval": 0,
        "count": 0,
        "maxLatency": 0
      }
    ]
  }'

Responses

OK

Response
No content